/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simutanque;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JLabel;

/**
 *
 * @author Augusto Wolf
 */
public class labelVertical extends JLabel {

    public labelVertical(String s) {
        super(s);
        //setPreferredSize(new Dimension(30, 90));
        //setMinimumSize(new Dimension(30, 90));
    }

    public void paintComponent(Graphics g) {
        Graphics2D g2d = (Graphics2D) g;
        g2d.translate(20.0, 300.0);
        //g2d.translate(0,0);
        g2d.rotate(300);
        g2d.drawString(super.getText(), 0, 0);
    }
}
